﻿<local:BaseWizardWindow
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="Sinacor.Deployment.Setup.UI.ComponentsSelection"
    xmlns:local="clr-namespace:PSE.Deployment.SetupBase.UI;assembly=PSE.Deployment.SetupBase"
    xmlns:Control="clr-namespace:PSE.Deployment.SetupBase.UI.CustomComponents;assembly=PSE.Deployment.SetupBase"
	Title="Setup">
    <Window.Resources>
        <ResourceDictionary>
            <HierarchicalDataTemplate x:Key="CheckBoxItemTemplate" ItemsSource="{Binding Children, Mode=OneTime}">
                <StackPanel Orientation="Horizontal">
                    <CheckBox x:Name="chkGroup" Focusable="False" IsChecked="{Binding IsChecked}" VerticalAlignment="Center" Style="{DynamicResource CheckBoxSetup}" Template="{DynamicResource CheckBoxControlTemplateSetup}" />
                    <Label Content="{Binding Name, Mode=OneTime}" Margin="2,0"/>
                </StackPanel>
            </HierarchicalDataTemplate>
        </ResourceDictionary>
    </Window.Resources>
    <Grid>
        <Button HorizontalAlignment="Right" Style="{DynamicResource BotaoFechar}" VerticalAlignment="Top" Width="15" Height="15" Content="" Margin="0,15,15,0" x:Name="BtnClose"/>
        <TextBlock Margin="50,125,0,0" VerticalAlignment="Top" FontSize="12" TextWrapping="Wrap" HorizontalAlignment="Left" Width="860" Foreground="#FF333333"><Run FontSize="24" FontWeight="Bold" Foreground="#FF336699" Text="Definição de Componentes" Language="pt-br"/><LineBreak/><LineBreak/><Run Text="Selecione abaixo os componentes que deseja instalar do SINACOR." Language="pt-br"/></TextBlock>
        <Button Margin="0,0,140,50" Style="{DynamicResource setupBt}" Content="Retornar" Background="{DynamicResource BtBackColor}" VerticalAlignment="Bottom" Height="21" Foreground="#FFFFFFFF" HorizontalAlignment="Right" Width="80" x:Name="BtnPrevious" />
        <Button Margin="0,0,50,50" Style="{DynamicResource setupBt}" Content="Avançar" Background="{DynamicResource BtBackColor}" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="80" Height="21" Foreground="#FFFFFFFF" x:Name="BtnNext" />
        <Grid HorizontalAlignment="Left" Margin="50,190,0,0" VerticalAlignment="Top">
            <Control:GroupsTreeView x:Name="treeview" Width="500" Height="450" />
        </Grid>
        <Image Margin="490,110,0,0" Height="194" Name="image1" Stretch="Fill" Width="343" Source="{DynamicResource SinacorComputer}" />
    </Grid>
</local:BaseWizardWindow>